import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// CSS导入顺序很重要：先导入重置，然后是基础样式，最后是自定义主题
import 'normalize.css' // 样式重置
import 'element-plus/dist/index.css' // Element Plus 基础样式
import '@/assets/styles/theme/variables.css' // 自定义主题变量
import '@/assets/styles/common.scss' // 全局通用样式
import 'animate.css' // 动画库

import App from './App.vue'
import router from './router'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)

app.use(pinia)
app.use(router)

app.mount('#app')
